package com.zjj.learn.designmodel.pattern.builder.demo1;

/**
 * *** @author zjj_admin
 * *** 2022/4/7 21:42
 */
public class Director {

    private Builder mBuilder;

    public Director(Builder builder) {
        mBuilder = builder;
    }

    public Bike construct() {
        mBuilder.buildFrame();
        mBuilder.buildSeat();
        return mBuilder.createBike();
    }
}
